package com.bs.repository;

import com.bs.domain.Deploy;
import com.bs.domain.DeployArchive;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

import java.sql.Timestamp;
import java.util.List;

/**
 * Spring Data JPA repository for the DeployArchive entity.
 */
@SuppressWarnings("unused")
public interface DeployArchiveRepository extends JpaRepository<DeployArchive,Long>,JpaSpecificationExecutor<DeployArchive> {
    List<DeployArchive> findBysubmitDateLessThan(Timestamp time);//小于某个时间的

    @Query("select DISTINCT t.part from DeployArchive t where t.part is not null")
    List getPartitions();
}
